package com.xys.auth.service;

import com.xys.auth.bean.UserInfo;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.List;

public interface IUserService extends UserDetailsService {
    UserDetails loadUserByUsername(String s) throws UsernameNotFoundException;

    List<UserInfo> findAll();

    int save(UserInfo userInfo);

    UserInfo findById(String id);

    void addRoleToUser(String userId, String[] ids);
}
